package com.cjx.stars.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjx.stars.pojo.table.CommentLike;

/**
* @author cjx
* @description 针对表【comment_like】的数据库操作Mapper
* @createDate 2024-04-04 19:09:11
* @Entity generator.domain.CommentLike
*/
public interface CommentLikeMapper extends BaseMapper<CommentLike> {

    /**
     * 判断是否存在已删除的点赞关系
     * @param commentId 评论id
     * @param userId 用户id
     * @return 点赞数据
     */
    CommentLike getIsLike(Long commentId, Long userId);



    /**
     * 将已删除的点赞关系恢复
     * @param commentId 评论id
     * @param userId 用户id
     * @return 是否修改成功
     */
    Boolean updateDeleteLike(Long commentId, Long userId);
}




